using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WebUpdaterAdminCore.Models
{
    /// <summary>
    /// 客户端分组
    /// </summary>
    public class ClientGroup
    {        
        public int Id { get; set; }

        /// <summary>
        /// 分组名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string Name { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateDate { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否可用
        /// </summary>
        [Required]
        public bool Useable { get; set; } = true;

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(500)]
        public string Remarks { get; set; }
    }
}
